package com.reza.simpd.events
{
	import flash.events.Event;

	public class EventDataGrid extends Event
	{
		public static var PAGE_CHANGED:String 	= "pageChanged";
		public static var DATA_SORTED:String 	= "dataSorted";
		public static var DATA_FILTERED:String 	= "dataFiltered";
		
		public var page:int = 1;
		public var elementsPerPage:int = 1;
		public var areWeSorting:Boolean = false;
		public var sortField:String = "";
		public var sortAsc:Boolean = true;
		public var filterField:String = "";
		public var filterValue:String = "";
		
		public function EventDataGrid(type:String, bubbles:Boolean=false, cancelable:Boolean=false){
			super(type, bubbles, cancelable);
		}
		
		override public function clone():Event {
			var e:EventDataGrid = new EventDataGrid(type, bubbles, cancelable);
			e.page = page;
			e.areWeSorting = areWeSorting;
			e.elementsPerPage = elementsPerPage;
			e.sortAsc 	= sortAsc;
			e.sortField = sortField;
			e.filterField = filterField;
			e.filterValue = filterValue;
			return e;
		}
		
	}
}